package com.design;

/**
 * 测试类
 */
public class MainTest {
    public static void main(String[] args) {
        GroupChat groupChat=new GroupChat();
        NormalUser user1=new NormalUser(groupChat,"张三");
        NormalUser user2=new NormalUser(groupChat,"李四");
        NormalUser user3=new NormalUser(groupChat,"王五");
        user1.sendMessage("hello");
        user2.sendMessage("大家好");
        user3.sendMessage("今天是个好天气");
    }
}
